# -*- codeing = utf-8 -*-
# @Time : 2022/12/22 14:33
# @Author : 小马
# @File: shooter.py
# @Software : PyCharm
import pygame
class shoot(pygame.sprite.Sprite):
    def __init__(self):
        super(shoot, self).__init__()
        self.image = pygame.image.load('material/character2.1.PNG').convert_alpha()
        self.images=[pygame.image.load('material/character2.{:d}.png'.format(i)).convert_alpha() for i in range(1,32)]
        self.rect=self.images[0].get_rect()
        self.rect.top=200
        self.rect.left=480

    def update(self,*args):
        self.image=self.images[args[0]%len(self.images)]
